package com.matrix.index.ui.home

import com.matrix.basecore.arouter.ARouterUtils
import com.matrix.basecore.base.BaseActivity
import com.matrix.basecore.utils.glide.GlideUtil
import com.matrix.index.R
import com.matrix.index.databinding.ActivityWelcomeBinding

class WelcomeActivity : BaseActivity<ActivityWelcomeBinding>() {

    override fun getViewBinding(): ActivityWelcomeBinding {
        return ActivityWelcomeBinding.inflate(layoutInflater)
    }

    override fun initView() {
        GlideUtil.loadRoundImage(
            R.mipmap.matrix_tool,
            this,
            mViewBinding.ivLogo,
            8,
            R.mipmap.matrix_tool
        )
    }

    override fun initData() {
        Thread {
            Thread.sleep(1000)
            runOnUiThread {
                ARouterUtils.startHomeActivity()
                finish()
            }
        }.start()
    }
}